package chpt04.abstractshapes;

public class Circle extends AbstractShape {

	private double radius;

	public double getRadius() {
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}

	public Circle() {
	}

	public Circle(double radius) {
		this.radius = radius;
	}

	public Circle(int x, int y, int id, double radius) {
		super(x, y, id);
		this.radius = radius;
	}

	public Circle(int x, int y, int id) {
		super(x, y, id);
	}

	@Override
	public double getArea() {
		return Math.PI * radius * radius;
	}

	public double getPerimeter() {
		return 2 * Math.PI * radius;
	}

}
